package br.ucb.rest.controle.servlet.impl;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import br.ucb.rest.controle.servlet.AbstractServlet;

@WebServlet(urlPatterns={"/teste"})
public class TesteServlet extends AbstractServlet {
	private static final long serialVersionUID = 1L;

	public void testarServico(HttpServletRequest request, HttpServletResponse response) {
		try {
			prepararResposta(response);
			response.getOutputStream().write("<resultado>Deu certo!</resultado>".getBytes());
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	
}
